<%@ page import="edu.sctu.Student" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2018/5/3
  Time: 17:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    int x=0;
    pageContext.setAttribute("a",10);
    request.setAttribute("b",20);
    session.setAttribute("c",30);
    application.setAttribute("d",40);

    Student zhang=new Student();
    zhang.setId(1001);
    zhang.setName("zhanghuilin");
    pageContext.setAttribute("zhangs",zhang);
%>
<p>a=${a}</p>

<hr/>
<p>${pageScope.a}</p>
<p>${requestScope.b}</p>
<p>${sessionScope.c}</p>
<p>${applicationScope.d}</p>




<hr/>
<p>${a}</p>
<p>${b}</p>
<p>${c}</p>
<p>${d}</p>


</body>
</html>
